home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000420_fdc@columbia.edu_Wed Oct 20 15:05:30 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Kermit Script Output Out of Order
Date: 20 Oct 2004 19:04:46 GMT
Organization: Columbia University
Lines: 33
Message-ID: <slrncnddme.qmr.fdc@sesame.cc.columbia.edu>
References: <cl29ql$dm7$1@zcars0v6.ca.nortel.com> <slrncnan01.3s1.fdc@sesame.cc.columbia.edu> <cl3tc5$5n0$1@zcars0v6.ca.nortel.com> <_mfdd.83561$Ot3.22349@twister.nyc.rr.com> <cl4k1s$97u$1@zcars0v6.ca.nortel.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1098299086 1103 128.59.59.56 (20 Oct 2004 19:04:46 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 20 Oct 2004 19:04:46 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15203
On 2004-10-20, Robert Simmons <robertls@nortelnetworks.com> wrote:
: I am not piping the output of two processes to one file. I tried the piping
: of the output of only the kermit script to help debug the weird behaviour I
: was seeing in the output during the fork of the script from the C++ process.
:
: As you can see below the line "Hello and welcome to csd_send_script.ksc!"
: should be output well before "NO CARRIER" since it takes about 15 seconds
: for NO CARRIER to be determined.
:
It's what I said: ECHO is buffered, whereas SET DIAL DISPLAY ON output is
not. By the way, Kermit has had FOR (and WHILE) loops for many years, so
you don't need the old SET COUNT / IF COUNT trick any more:
: set count \%5
::loop
: echo Sending File. Transfer Count: \v(count)\10
: send \%6
: if success echo Send File #\v(count) complete\10
: if fail echo Failed Sending File #\v(count)
: if count goto loop
Why are you sending the same file repeatedly? Something like this
looks more sensible:
set flag off
for \%i 1 \%5 1 {
send \%6
if success break
echo "\%6: Failed - Try #\%i..."
}
if != \v(xferstatus) { ... } # 0 means success
- Frank